<script type="text/javascript">
    document.getElementById('checkoutButton').addEventListener('click', function() {
        window.location.href = '${pageContext.request.contextPath}/checkout';
    });
</script>